﻿#ifndef HOTELMANAGE_H
#define HOTELMANAGE_H

#include <QWidget>

namespace Ui {
class HotelManage;
}

class HotelManage : public QWidget
{
    Q_OBJECT

public:
    explicit HotelManage(QWidget *parent = nullptr);
    ~HotelManage();

    void updateHotelInfo();
    void updateHotelInfoShow();
    void initWindowsUnits();

private slots:
    void on_pb_modify_clicked();
    void on_pb_delete_clicked();
    void on_pb_nextPage_clicked();
    void on_pb_lastPage_clicked();
    void on_pb_firstPage_clicked();

    void on_pb_endPage_clicked();
    void on_pb_jump_clicked();
    void on_pb_search_clicked();
    void on_cb_select_currentIndexChanged(int index);
    void on_tableWidget_cellChanged(int row, int column);

    void on_pb_save_clicked();
    void on_cb_type_currentIndexChanged(int index);
    void on_cb_star_currentIndexChanged(int index);
    void on_cb_mark_currentIndexChanged(int index);

private:
    Ui::HotelManage *ui;
    int m_pageCount;
    int m_page;
    bool m_change;
    QVector< QVector<QString> > m_oneMoreCondition;
    QList< QVector<QString> > m_modifyList;
};

#endif // HOTELMANAGE_H
